<?php

	require_once "Control\MasterController.php";
	require_once "View\PageView.php";
	
	session_start();
	
	$masterController = new MasterController();
	
	$combinedPage = $masterController->DoControll();
	
	//Creates an XHTML-Page
	$view = new PageView("UTF-8");
	$view->AddStylesheet("CSS/mainstyle.css");
	$view->AddScript($combinedPage->m_javascript);
	print ($view->GetXHTMLPage($combinedPage->m_title, $combinedPage->m_body));
?>
